package com.jerry.usbserial.util

import org.junit.Test
import org.junit.runner.RunWith
import org.junit.runners.JUnit4
import java.nio.charset.Charset

/**
 * Created by dugang on 2020/6/13.
 */
@RunWith(JUnit4::class)
class CRCUtilTest {




    @Test
    fun test() {
        val a = "53656E6420546F2055617274204F6B21".hexToByteArray()
        println(a.copyOfRange(13,15).toHex())
    }
}
